/*****************************************************************************
 * Copyright (C) Stacy Curl. All rights reserved.                            *
 * ------------------------------------------------------------------------- *
 * The software in this package is published under the terms of the BSD      *
 * style license a copy of which has been included with this distribution in *
 * the LICENSE.txt file.                                                     *
 *****************************************************************************/
package picounit.features.parameter_constraints;

import picounit.Is;
import picounit.Registry;
import picounit.Verify;
import picounit.features.Feature;
import picounit.features.base.FeatureRegistry;
import picounit.features.base.ProxyFactory;
import picounit.features.constraint_store.ConstraintStore;

public class ParameterConstraintsFeature implements Feature {
	private final Verify verify;
	private final Registry registry;
	private final ConstraintStore constraintStore;

	public ParameterConstraintsFeature(ConstraintStore constraintStore, Registry registry, Verify verify) {
		this.constraintStore = constraintStore;
		this.registry = registry;
		this.verify = verify;
	}

	public void addFeatures(FeatureRegistry featureRegistry) {
		registry.register(Is.class, new JMockConstraints(constraintStore, new ProxyFactory(), verify));
	}
}
